package com.pureut.storage.controller;


import com.pureut.storage.dto.AllotManagementDetailDto;
import com.pureut.storage.service.AllotManagementDetailService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * 调拨管理明细控制层
 * @author: CM
 * @date: 2023/2/14  14:13
 */
@RestController
@RequestMapping("/allotManagementDetail")
public class AllotManagementDetaillContrroller extends BaseController {

    @Resource
    AllotManagementDetailService allotManagementDetailService;

    /**
     * 调拨明细列表
     */
    @GetMapping("/list")
    public TableDataInfo<AllotManagementDetailDto> getList(String docNum, PageQuery pageQuery) {
        //查询库存列表
        return allotManagementDetailService.getList(docNum,pageQuery);
    }

}
